package com.example.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.domain.Category;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Transactional
public interface ICategoryService {
    public void save(Category category);
    public Page<Category> page(Integer page,Integer pageSize);
    public void remove(Long id);
    public void update(Category category);
    public List<Category> list(Integer type);
    public Category getById(Long id);
}
